package iscript.coreFramework.util 
{
	/**
	 * ...
	 * @author raymond
	 */
	public class FileUtil 
	{
		static public function IsSWF(file:String):Boolean {
			   var extendName:String  = file.substr(file.length - 4, 4).toLocaleUpperCase();
			   return extendName == ".SWF";		
			}
			
		static public function IsImage(file:String):Boolean {
			   var extendName:String  = file.substr(file.length - 4, 4).toLocaleUpperCase();
			   if ( extendName==".JPG")  return true;		   
			   if ( extendName==".BMP")  return true;		   
			   if ( extendName==".PNG")  return true;	
			   if ( extendName==".GIF")  return true;	
			   return false;
			}
	}

}